package stage1.operation.module2;

import java.math.BigDecimal;

// 上网套餐类
public class InternetPackage extends BasicPackage implements InternetServiceInterface {
    // 上网流量
    private int internetTraffic;
    // 每月资费
    private BigDecimal monthlyTariff;

    public int getInternetTraffic() {
        return internetTraffic;
    }

    public void setInternetTraffic(int internetTraffic) {
        this.internetTraffic = internetTraffic;
    }

    @Override
    public BigDecimal getMonthlyTariff() {
        return monthlyTariff;
    }

    @Override
    public void setMonthlyTariff(BigDecimal monthlyTariff) {
        this.monthlyTariff = monthlyTariff;
    }

    @Override
    public void displayPackage(int callDuration, SimCard simCard) {
        System.out.println("上网流量:" + this.getInternetTraffic() + "(M),每月资费:" + this.getMonthlyTariff());
    }
}
